package com.mxm.mirai.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mxm.mirai.dao.Pay;
import com.mxm.mirai.dao.PayConfig;
import com.mxm.mirai.mapper.PayConfigMapper;
import com.mxm.mirai.mapper.PayMapper;
import com.mxm.mirai.service.PayConfigService;
import com.mxm.mirai.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 漫小猫
 * @since 2020-09-24
 */
@Service
public class PayConfigServiceImpl extends ServiceImpl<PayConfigMapper, PayConfig> implements PayConfigService {

    @Autowired
    PayConfigMapper payConfigMapper;

    @Override
    public PayConfig getPayConfig() {
        return payConfigMapper.selectById(1);
    }

    @Override
    public Integer UpdatePayConfig(PayConfig payConfig) {
        return payConfigMapper.updateById(payConfig);
    }
}
